package com.cgc.shop.model;

/**
 * Orders entity. @author MyEclipse Persistence Tools
 * 订单项
 */

public class Orders implements java.io.Serializable {

	// Fields

	private Integer id;
	private Cart cart;
	private Product product;
	private String name;
	private Double price;
	private Integer number;

	// Constructors

	/** default constructor */
	public Orders() {
	}

	/** minimal constructor */
	public Orders(Integer number) {
		this.number = number;
	}

	/** full constructor */
	public Orders(Cart cart, Product product, String name, Double price,
			Integer number) {
		this.cart = cart;
		this.product = product;
		this.name = name;
		this.price = price;
		this.number = number;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Cart getCart() {
		return this.cart;
	}

	public void setCart(Cart cart) {
		this.cart = cart;
	}

	public Product getProduct() {
		return this.product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Integer getNumber() {
		return this.number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}

}